##########################################################
###                    Glare3D Core                    ###
##########################################################

# set some CMake module paths
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/__CMake__)

# enable Folders4CMake
set (folders4cmake_path ${CMAKE_SOURCE_DIR}/__CMake__/folders4cmake.jar)
include (folders4cmake)

# include the source file list generated by Folders4CMake
include (glare.core_src_files)

set (INCLUDE_DIRS
	${CFG_FILE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/include
    ${CMAKE_SOURCE_DIR}/Libraries/glare.math/include
)

set (LIBRARIES
    glare.math
)

include_directories(${INCLUDE_DIRS})

add_library (glare.core STATIC ${file_root})
set_property(TARGET glare.core PROPERTY FOLDER ${PROJECT_LIBRARIES_FOLDER})

auto_rebuild_src_files (glare.core)

target_link_libraries (glare.core ${LIBRARIES})
